package com.example.ymm.modules1.service.user;

import com.alibaba.fastjson.JSONObject;
import com.example.ymm.base.BaseService;
import com.example.ymm.model.TableList;
import com.example.ymm.model.YmPageDto;
import com.example.ymm.modules1.entity.my.user.DbUserWait;
import com.example.ymm.modules1.query.DbUserWaitQueryCriteria;
import com.example.ymm.modules1.query.sys.SysApprovalSettingQueryCriteria;

import java.util.List;

public interface DbUserWaitService extends BaseService<DbUserWait> {


    TableList<DbUserWait> list(DbUserWaitQueryCriteria criteria, YmPageDto ymPage);

    List<DbUserWait> queryAll(DbUserWaitQueryCriteria criteria);


    DbUserWait findByApproveNo(String approveNo,String userId);


    DbUserWait findByApprovalNodeId(String approvalNodeId);

    List<JSONObject> myWaitList(DbUserWaitQueryCriteria criteria, SysApprovalSettingQueryCriteria c2);


    /**
     * 完成代办
     */
    void completeUserWait(String approvalNodeId);


}
